<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/11/15
 * Time: 17:19
 */

function getUrl($url){
//	echo "<pre>";
//	var_dump($_SERVER);
//	echo "</pre>";
//	http://
	$uri = $_SERVER['REQUEST_URI'];
	$host = $_SERVER['HTTP_HOST'];
	$str = substr($url,7);
	if($str == $host.$uri){
		echo $str;
		return"success";
	}
}